@import "../const.scss";

$card-width: 205px;

.selector-card-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  a {
    text-decoration: none;
  }
}

.selector-card-container:not(:last-child) {
  margin-bottom: $sm-gutter;
}

.expander {
  cursor: pointer;
  background-color: $app-clr-2;
  border-left: 2px solid $app-clr-2;
  border-top: 2px solid $app-clr-2;
  border-right: 2px solid $app-clr-2;
  border-bottom: 0;
  color: $app-white;
  border-radius: $border-radius $border-radius 0 0;
  margin: 0;
  font-size: 0.4rem;
  padding: 0.1rem;
  height: 0.8rem;
  line-height: 0.3rem;
  width: $card-width;
  i {
    margin: 0;
    padding: 0;
  }
}

.expander:focus {
  outline: none;
  box-shadow: 0 0 2px $app-clr-4;
}

/* --- */

.selector-card {
  color: $app-white;
  background-color: transparent;
  overflow-wrap: break-word;
  border: 2px solid $app-clr-2;
  border-radius: 0 0 $border-radius $border-radius;
  width: $card-width;
  h4,
  h5 {
    font-size: 1.2rem;
    color: $app-clr-yellow-1;
  }
  h5 {
    font-size: 1rem;
  }
  margin-top: -3px;
}

/* --- */

.selector-card-expanded {
  text-align: center;
  padding: $sm-gutter;
  overflow: hidden;

  strong {
    font-weight: 400;
  }

  .module-count {
    color: $app-clr-blue-2;
    font-size: 0.75rem;
    padding-bottom: 4px;
  }
}

.selector-card-expanded:focus {
  outline: none;
  box-shadow: 0 0 2px $app-clr-4;
}

/* --- */

.selector-card-mini {
  text-align: center;
  padding: $sm-gutter;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: space-between;

  div:first-child {
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  h5 {
    margin: 0;
    margin-left: $sm-gutter;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.selector-card-mini:focus {
  outline: none;
  box-shadow: 0 0 2px $app-clr-4;
}

/* --- */

.selector-card-spinner {
  padding: $sm-gutter;
  height: 3.25rem;
}

.selector-card-spinner .leaf-msg {
  font-size: 0.9rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.selector-card:hover {
  cursor: pointer;
  background-color: $app-clr-blue-1;
  color: $app-white;
}

.selector-card-active {
  background-color: $app-clr-0;
}

.selector-card-active-edge {
  background-color: $app-clr-0;
}

/* --- */

.control {
    font-size: 0.8rem;
    padding: 0 $xs-gutter;
}
.control-OFF {
    color: $app-clr-4;
}
.control-DELAY {
    color: $app-clr-purple-1;
}
.control-ON {
    color: $app-clr-blue-1;
}
.control-TRYING {
    color: $app-clr-orange-1;
}
.control-SUCCESS {
    color: $app-clr-green-1;
}
.control-INIT {
    color: $app-clr-blue-5;
}
.control-CONNECTED {
    color: $app-clr-green-2;
}
.control-ERROR {
    color: $app-clr-red-1;
}
